package uk.ac.cam.tcs40.sidnet.menu;

import java.util.LinkedList;
import java.util.List;

public class Menu {

	private final List<Meal> m_TodayLunch = new LinkedList<Meal>();
	private final List<Meal> m_TodayDinner = new LinkedList<Meal>();
	private final List<Meal> m_TomorrowLunch = new LinkedList<Meal>();
	private final List<Meal> m_TomorrowDinner = new LinkedList<Meal>();
	
	public void addMeal(Meal meal) {
		if (meal.isToday() && meal.isLunch())
			m_TodayLunch.add(meal);
		else if (meal.isToday())
			m_TodayDinner.add(meal);
		else if (meal.isLunch())
			m_TomorrowLunch.add(meal);
		else 
			m_TomorrowDinner.add(meal);
	}
	
	public List<Meal> getTodayLunch() {
		return m_TodayLunch;
	}
	
	public List<Meal> getTodayDinner() {
		return m_TodayDinner;
	}
	
	public List<Meal> getTomorrowLunch() {
		return m_TomorrowLunch;
	}
	
	public List<Meal> getTomorrowDinner() {
		return m_TomorrowDinner;
	}
}
